﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <link href="~/Content/layui/css/layui.css" rel="stylesheet" />
    <title>Index</title>
    <style>
        .content {
            width: 1210px;
            margin: 0px auto;
        }

        .flex {
            display: flex;
        }

        .a-c {
            align-items: center;
        }

        .j-s {
            justify-content: center;
        }

        .toolbar {
            padding: 10px 15px;
            width: 700px;
        }

            .toolbar div {
                height: 38px;
            }

        .tcClass_ {
            width: 444px;
            margin: 0 auto;
            margin: 10px auto;
            background: #f4f4f4;
        }

        .layui-form-label {
            padding: 9px 5px;
        }
    </style>
</head>

<script src="~/Content/js/utils.js"></script>

<body>
    <div class="content">
        <table id="mytable" lay-filter="test"></table>
    </div>

    <script type="text/html" id="mytoolbar">
        <div class="flex toolbar a-c">
            <button class="layui-btn layui-btn-sm" style="display: block; margin-right: 50px;" lay-event="add">添加</button>

            班级:&nbsp;
            <input type="text" name="title" title" id="search" placeholder="请输入未毕业班级编号查询" autocomplete="off" class="layui-input" style="height: 30px; width: 200px;">
            <button class="layui-btn layui-btn-sm" style="margin-left: 30px;" onclick="search()">搜索</button>
            <button class="layui-btn layui-btn-sm layui-btn-primary" style="margin-left: 30px;" onclick="resetSearch()">重置</button>
            <button id="graduate" class="layui-btn layui-btn-sm" style="margin-left: 30px;" onclick="graduateSearch()">已毕业班级</button>
            <button id="noGraduate" class="layui-btn layui-btn-sm " onclick="NograduateSearch()" style="display:none;margin-left:30px">未毕业班级</button>
        </div>
    </script>

    <script type="text/html" id="mybar">
        <a id="ttttt" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit" style="border-radius: 6px;width:80px">教学安排</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" style="border-radius: 6px; width:80px">删除</a>
    </script>
    @* 弹出教师安排页面开始 *@
    <div id="tc" style="display: none;">
        <div id="select" class="layui-inline layui-form">
            <label class="layui-form-label">选择学年：</label>
            <div class="layui-input-inline">
                <select id="opt" name="studyYear" lay-verify="required" lay-search>
                    <option value="">输入或选择学年</option>
                </select>
            </div>
            <!-- <div id="select" class="layui-btn-group"></div> -->
            <button id="into" type="button" class="layui-btn layui-btn-sm"><i class="layui-icon">确定</i></button>
            <!-- </div> -->
        </div>


        <div id="content" class="tcClass_" style="display: none;" id="ChangeCourse">
            <div>
                <button id="inout" type="button" class="layui-btn layui-btn-sm"><i class="layui-icon"></i></button>

                <h1 id="tcTitle" style="text-align: center;margin: 10px auto;"></h1>
            </div>

            <div class="layui-inline layui-form">
                <label class="layui-form-label">选择课程：</label>
                <div class="layui-input-inline">
                    <select name="course" lay-filter="course" lay-verify="required" lay-search="">
                    </select>
                </div>
            </div>
            <div class="layui-inline layui-form">
                <label class="layui-form-label">选择教师：</label>
                <div class="layui-input-inline">
                    <select name="teacher" lay-filter="teacher" lay-verify="required" lay-search="">
                    </select>
                </div>
            </div>


            <div class="layui-btn-group">
                <button type="button" id="addcourse" class="layui-btn layui-btn-sm"><i class="layui-icon">添加</i></button>
            </div>

            <table id="text" lay-filter="test"></table>
        </div>
    </div>
    @* 弹出教师安排页面结束 *@

@* 添加弹出层页面开始 *@
    <div style="display: none; padding: 20px;" id="saveOrUpdateDiv">
        <form class="layui-form" lay-filter="dataFrm" id="dataFrm" style="margin-top:20px">

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">班级编号：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="classCode" autocomplete="off" class="layui-input" placeholder="例：1790012">
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">年级：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="grade" lay-verify="required" autocomplete="off" class="layui-input" placeholder="例：2020">
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">专业名称：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="major" lay-verify="required" autocomplete="off" class="layui-input" placeholder="例：软件工程">
                    </div>
                </div>
            </div>

            <div class="layui-form-item" style="margin-top:30px; margin-left:-35px">
                <div class="layui-input-block">
                    <button type="button"
                            class="layui-btn layui-btn-normal  layui-icon layui-icon-upload-circle"
                            lay-filter="doSubmit" lay-submit="">
                        提交
                    </button>
                    <button type="reset"
                            class="layui-btn  layui-btn-warm layui-btn-primary layui-icon layui-icon-refresh">
                        重置
                    </button>
                </div>
            </div>
        </form>
    </div>
    @* 添加弹出层结束 *@
<script src="~/Content/layui/layui.js"></script>

    <script src="~/Content/js/ClassManager.js"></script>
</body>

</html>